package com.maimao.model.goods.input;

import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 卖家中心搜索商品 参数实体
 *
 * @author MaoLin Wang
 * @date 2021/1/24 4:08 下午
 */
@Setter
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GoodsSearch implements Serializable {

    private static final long serialVersionUID = -5679149997613471998L;
    private String title;

    private Long goodsId;

    private Integer cid1;

    private Integer cid2;

    private Integer cid3;

    private Integer status;

    private Integer onSell;

    private Integer sellCountMin;

    private Integer sellCountMax;

    private BigDecimal priceMin;

    private BigDecimal priceMax;

    /**
     * 活动id 用于秒杀报名过滤已报名的sku
     */
    private Integer activityId;

    /**
     * 排期id
     */
    private Long scheduleId;

    @Override
    public String toString() {
        return "GoodsSearch{" +
                "title='" + title + '\'' +
                ", goodsId=" + goodsId +
                ", cid1=" + cid1 +
                ", cid2=" + cid2 +
                ", cid3=" + cid3 +
                ", status=" + status +
                ", onSell=" + onSell +
                ", sellCountMin=" + sellCountMin +
                ", sellCountMax=" + sellCountMax +
                ", priceMin=" + priceMin +
                ", priceMax=" + priceMax +
                '}';
    }
}
